package com.sky.haikangdemo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "gate")
public class Gate {
    /**
     * 设备ID/SN
     */
    @Id
    @Column(name = "device_id")
    private Integer deviceId;

    /**
     * 道闸名称
     */
    @Column(name = "device_name")
    private String deviceName;

    /**
     * 道闸IP
     */
    @Column(name = "device_ip")
    private String deviceIp;

    /**
     * 进出口类型：1进，2出
     */
    @Column(name = "cut_type")
    private Integer cutType;

    /**
     * 停车场ID
     */
    @Column(name = "park_id")
    private String parkId;

    /**
     * 停车场ID
     */
    @Column(name = "park_name")
    private String parkName;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "create_time")
    private String createTime;


}